package Demo1;

import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-06-10
 * Time: 19:05
 */
public class Test {
    public static void main(String[] args) {

    }
    public static void main5(String[] args) {
        int[][] array = new int[2][];
        array[0] = new int[]{1,2,3};
        array[1] = new int[6];
        System.out.println(Arrays.deepToString(array));
    }
    public static void main4(String[] args) {
        int[][] array = new int[][]{{1,2,3},{4,5,6}};
        System.out.println(Arrays.deepToString(array));
        System.out.println(Arrays.toString(array));
    }
    public static void main3(String[] args) {
        int[] array = new int[10];
        Arrays.fill(array,1,4,10);
        for (int x : array) {
            System.out.print(x + " ");
        }
    }
    public static void main2(String[] args) {
        //随机数
        Random random = new Random();
        int ret = random.nextInt(100);
        System.out.println(ret);
        int[] array = null;
        System.out.println(array[0]);
        int[] ret1 = Arrays.copyOf(array,10);
    }
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        //循环输入
//        while(scanner.hasNextInt()){
//            int ret = scanner.nextInt();
//            System.out.println(ret);
//        }
        String str = scanner.nextLine();
        System.out.println(str);

    }
}

